<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 9/4/14
 * Time: 3:08 PM
 */

namespace App\Modules\Ecommerce\Controllers;

use App , View;
use App\Modules\Ecommerce\Models\Category;

class CategoryController extends \BaseController
{
    public function getIndex()
    {
        $category = Category::all();// Category::with('products')->get();
        return $category;
    }
}